package com.jk.smartelderlycare.controller;

import com.jk.smartelderlycare.dto.SysShipments;
import com.jk.smartelderlycare.interfaces.SysShipmentsServiceApi;
import com.jk.smartelderlycare.pojo.PagedResponse;
import com.jk.smartelderlycare.service.SysShipmentsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author hhk
 * @version 1.0
 * @ClassName SysShipmentsController
 * @program: smart-elderly-care
 * @description: TODO
 * @date 2024/12/5 18:57
 */
@Slf4j
@RestController
public class SysShipmentsController implements SysShipmentsServiceApi {
    @Autowired
    private SysShipmentsService sysShipmentsService;
    @Override
    public PagedResponse<SysShipments> findShipmentsPaginationList(SysShipments sysShipments, Integer pageNum, Integer pageSize) {
        return sysShipmentsService.findShipmentsPaginationList(sysShipments,pageNum,pageSize);
    }

    @Override
    public List<SysShipments> findShipmentsList() {
        return sysShipmentsService.findShipmentsList();
    }

    @Override
    public void addShipments(SysShipments sysShipments) {
        sysShipmentsService.addShipments(sysShipments);
    }
}
